<?php
/**
 * Created by PhpStorm.
 * User: chenzhitao
 * Date: 2018/4/1
 * Time: 下午6:57
 */

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    protected $table = "t_user";
    public function vouchers()
    {
        return $this->belongsToMany(Voucher::class,'t_uservoucher',"user_id","voucher_id");
    }
}